﻿namespace Basic.WxApiService.WxModel.Platform
{
    public class WxMerInfo : WxBasicRes
    {
        public MerAuthInfo authorization_info;

        public AuthorizerInfo authorizer_info;
    }
    public class AuthorizerInfo
    {
        /// <summary>
        /// 微信号
        /// </summary>
        public string alias;
        /// <summary>
        /// 昵称
        /// </summary>
        public string nick_name;
        /// <summary>
        /// 公号二维码
        /// </summary>
        public string qrcode_url;
        /// <summary>
        /// 公号原始ID
        /// </summary>
        public string user_name;
        /// <summary>
        /// 主体名称
        /// </summary>
        public string principal_name;
        /// <summary>
        /// 头像
        /// </summary>
        public string head_img;
        /// <summary>
        /// 小程序帐号介绍
        /// </summary>
        public string signature;
        /// <summary>
        /// 小程序注册方式
        /// </summary>
        public int? register_type;
        /// <summary>
        /// 帐号状态
        /// </summary>
        public int account_status;
        /// <summary>
        /// 公众号/小程序类型
        /// </summary>
        public IdAndName service_type_info;
        /// <summary>
        /// 公众号/小程序类型
        /// </summary>
        public IdAndName verify_type_info;

        public businessList business_info;

        public miniprograminfo miniprograminfo;

        public BasicConfig basic_config;

        public int? channels_info;
    }
    public class BasicConfig
    {
        /// <summary>
        /// 是否已经绑定手机号
        /// </summary>
        public bool is_phone_configured;
        /// <summary>
        /// 是否已经绑定邮箱
        /// </summary>
        public bool is_email_configured;
    }
    public class IdAndName
    {
        public int id;

        public string name;
    }
    public class miniprograminfo
    {
        public mininetwork network;
        public miniCategorie[] categories;
        public int visit_status;
    }
    public class miniCategorie
    {
        public string first;

        public string second;
    }
    public struct mininetwork
    {
        public string[] RequestDomain;
        public string[] WsRequestDomain;
        public string[] UploadDomain;
        public string[] DownloadDomain;
    }
    public struct businessList
    {
        public byte open_card;

        public byte open_pay;

        public byte open_scan;

        public byte open_shake;

        public byte open_store;
    }
    public class MerAuthInfo
    {
        public string appid;

        public funCategory[] func_info;
    }
}
